release: 7.6.0#144
Merged
imagekitio merged 36 commits intoMay 13, 2026
Merged
Conversation
Contributor
Author
|
🧪 Testing To try out this version of the SDK: Expires at: Fri, 12 Jun 2026 07:33:33 GMT |
bd4e920 to
618aa11
Compare
618aa11 to
76114cf
Compare
76114cf to
ee36208
Compare
ee36208 to
cfc32f7
Compare
cfc32f7 to
b7c2033
Compare
b7c2033 to
9fd26e7
Compare
9fd26e7 to
f95ddda
Compare
f95ddda to
9d92295
Compare
9d92295 to
b243b16
Compare
b243b16 to
4a35866
Compare
4a35866 to
d399163
Compare
d399163 to
6eeead5
Compare
6eeead5 to
1ebcc86
Compare
d43cb83 to
620edbe
Compare
620edbe to
36e6de7
Compare
Pin all GitHub Actions referenced in generated workflows (both first-party `actions/*` and third-party) to immutable commit SHAs. Updating pinned actions is now a deliberate codegen-side bump rather than implicit on every workflow run.
- Add `maintain_ratio_no_enlarge` to `crop` enum - Add `pad_resize_no_enlarge` and `pad_extract_no_shrink` to `cropMode` enum - Add `colorize` transformation parameter for applying color tints
Co-authored-by: Copilot <copilot@github.com>
…ration Co-authored-by: Copilot <copilot@github.com>
36e6de7 to
9bf0bf0
Compare
There was a problem hiding this comment.
Pull request overview
This release PR prepares version 7.6.0 of the ImageKit Node.js SDK and MCP package, adding new transformation support, custom header configuration, release metadata updates, and tooling/build adjustments.
Changes:
- Adds colorize and no-enlarge crop mode API/type support with URL-generation test updates.
- Adds environment-based custom headers and API-key redaction in debug logs.
- Updates release versions, changelog, MCP Cloudflare worker initialization, formatting/lint scripts, and pinned workflow actions.
Reviewed changes
Copilot reviewed 27 out of 31 changed files in this pull request and generated 10 comments.
Show a summary per file
| File | Description |
|---|---|
.github/workflows/ci.yml |
Pins GitHub Actions by commit SHA. |
.github/workflows/publish-npm.yml |
Pins checkout/setup-node actions by commit SHA. |
.github/workflows/release-doctor.yml |
Pins checkout action by commit SHA. |
.prettierignore |
Excludes MCP manifest and generated worker types. |
.release-please-manifest.json |
Bumps release manifest to 7.6.0. |
.stats.yml |
Updates Stainless spec/config metadata. |
CHANGELOG.md |
Adds 7.6.0 release notes. |
README.md |
Removes webhook signature example subsection. |
eslint.config.mjs |
Removes eslint-plugin-prettier integration. |
package.json |
Bumps SDK version and removes prettier ESLint plugin dependency. |
packages/mcp-server/cloudflare-worker/package.json |
Updates MCP SDK/agents dependencies and overrides. |
packages/mcp-server/cloudflare-worker/src/index.ts |
Reworks MCP server construction with fallback initialization. |
packages/mcp-server/cloudflare-worker/worker-configuration.d.ts |
Adjusts generated lint-disable comments. |
packages/mcp-server/cloudflare-worker/wrangler.jsonc |
Applies formatting changes. |
packages/mcp-server/manifest.json |
Bumps MCP manifest version. |
packages/mcp-server/package.json |
Bumps MCP package version. |
packages/mcp-server/src/server.ts |
Updates MCP server version metadata. |
scripts/bootstrap |
Makes SKIP_BREW expansion safer. |
scripts/fast-format |
Runs Prettier across listed files with ignore-unknown. |
scripts/format |
Runs Prettier across the repo after ESLint fixes. |
scripts/lint |
Adds standalone Prettier check before ESLint/build/type checks. |
scripts/utils/postprocess-files.cjs |
Postprocesses emitted declaration ts-ignore comments. |
src/client.ts |
Adds IMAGE_KIT_CUSTOM_HEADERS parsing into default headers. |
src/internal/types.ts |
Adds prettier-ignore markers around long ts-ignore type imports. |
src/internal/utils/log.ts |
Redacts api-key/x-api-key headers in request logs. |
src/lib/transformation-utils.ts |
Adds colorize transform mapping. |
src/resources/shared.ts |
Adds colorize and new crop mode typings. |
src/version.ts |
Bumps runtime SDK version. |
tests/custom-tests/url-generation/basic.test.ts |
Updates transformation URL test for colorize. |
yarn.lock |
Removes lock entries for prettier ESLint plugin dependency chain. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
+70
to
+73
|
|
||
| function fallbackMcpServer(): McpServer { | ||
| return new McpServer( | ||
| { name: 'imagekit_nodejs_api', version: '7.5.0' }, |
Comment on lines
+266
to
+270
| for (const line of customHeadersEnv.split('\n')) { | ||
| const colon = line.indexOf(':'); | ||
| if (colon >= 0) { | ||
| parsed[line.substring(0, colon).trim()] = line.substring(colon + 1).trim(); | ||
| } |
| parsed[line.substring(0, colon).trim()] = line.substring(colon + 1).trim(); | ||
| } | ||
| } | ||
| options.defaultHeaders = { ...parsed, ...options.defaultHeaders }; |
Comment on lines
+1449
to
1453
| colorize?: string; | ||
|
|
||
| /** | ||
| * Indicates whether the output image should retain the original color profile. See | ||
| * [Color profile](https://imagekit.io/docs/image-optimization#color-profile---cp). |
| unsharpMask: 'e-usm', | ||
| gradient: 'e-gradient', | ||
| colorReplace: 'cr', | ||
| colorize: 'e-colorize', |
| echo "$PRETTIER_FILES" | xargs ./node_modules/.bin/prettier \ | ||
| --write --cache --cache-strategy metadata --no-error-on-unmatched-pattern \ | ||
| '!**/dist' '!**/*.ts' '!**/*.mts' '!**/*.cts' '!**/*.js' '!**/*.mjs' '!**/*.cjs' | ||
| if ! [ -z "$FILE_LIST" ]; then |
|
|
||
| // TypeScript's declaration emitter collapses /** @ts-ignore */ onto the same | ||
| // line as the type declaration, which doesn't work. So we convert to // @ts-ignore | ||
| // on its own line to properly suppresses errors. |
Comment on lines
109
to
113
| name.toLowerCase() === 'authorization' || | ||
| name.toLowerCase() === 'api-key' || | ||
| name.toLowerCase() === 'x-api-key' || | ||
| name.toLowerCase() === 'cookie' || | ||
| name.toLowerCase() === 'set-cookie' |
| "@modelcontextprotocol/sdk": "^1.27.1", | ||
| "agents": "^0.8.5", | ||
| "@modelcontextprotocol/sdk": "1.28.0", | ||
| "agents": "~0.8.7", |
Comment on lines
+263
to
+272
| const customHeadersEnv = readEnv('IMAGE_KIT_CUSTOM_HEADERS'); | ||
| if (customHeadersEnv) { | ||
| const parsed: Record<string, string> = {}; | ||
| for (const line of customHeadersEnv.split('\n')) { | ||
| const colon = line.indexOf(':'); | ||
| if (colon >= 0) { | ||
| parsed[line.substring(0, colon).trim()] = line.substring(colon + 1).trim(); | ||
| } | ||
| } | ||
| options.defaultHeaders = { ...parsed, ...options.defaultHeaders }; |
Contributor
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Automated Release PR
7.6.0 (2026-05-13)
Full Changelog: v7.5.0...v7.6.0
Features
Bug Fixes
Chores
Documentation
This pull request is managed by Stainless's GitHub App.
The semver version number is based on included commit messages. Alternatively, you can manually set the version number in the title of this pull request.
For a better experience, it is recommended to use either rebase-merge or squash-merge when merging this pull request.
🔗 Stainless website
📚 Read the docs
🙋 Reach out for help or questions